diff --git a/desktop/scripts/dev.sh b/desktop/scripts/dev.sh index 6ce5e796..bf65e407 100755 --- a/desktop/scripts/dev.sh +++ b/desktop/scripts/dev.sh @@ -2,8 +2,8 @@ # Run OnionShare desktop, allowing you to use command-line arguments -SCRIPTS_DIR="$( cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )" -cd $SCRIPTS_DIR +SCRIPTS_DIR=$( cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd ) +cd "$SCRIPTS_DIR" cd ../src python -c "import onionshare; onionshare.main()" $@ \ No newline at end of file diff --git a/docs/build.sh b/docs/build.sh index 4b147426..e30d6b31 100755 --- a/docs/build.sh +++ b/docs/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=`cat ../cli/onionshare_cli/resources/version.txt` +VERSION=$(cat ../cli/onionshare_cli/resources/version.txt) # Supported locales LOCALES="en fi pl pt_BR ru tr uk"