File: run

package info (click to toggle)
rednotebook 2.41%2Bds-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,980 kB
  • sloc: python: 9,818; javascript: 4,103; xml: 128; sh: 58; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 469 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/env bash
#
# Little helper script that runs RedNotebook without installing it.
#
# Note: No need to translate strings locally, since they won't be
# picked up anyway.
#

set -euo pipefail

# Change into RedNotebook directory.
if command -v realpath &> /dev/null; then
    # If realpath command exists, use it to follow symlinks.
    cd "$(dirname "$(realpath "$0")")"
else
    cd "$(dirname "$0")"
fi

# Run RedNotebook.
python3 rednotebook/journal.py "$@"