RosBE/RosBE-Unix/Base-i386/scripts/chdefdir.sh
Dennis Luxen 9cf1bb87d9 Replace #!/bin/bash with #!/usr/bin/env bash (#3)
This PR pulls the location of `bash` from the environment and makes any workarounds for systems like FreeBSD unnecessary that put the `bash` in a different directory.
2018-06-28 10:06:56 +02:00

18 lines
440 B
Bash
Executable File

#!/usr/bin/env bash
#
# Change the ReactOS source directory for the current session
# Part of RosBE for Unix-based Operating Systems
# Copyright 2009 Colin Finck <mail@colinfinck.de>
#
# Released under GNU GPL v2 or any later version.
if [ "$1" = "" ]; then
echo "chdefdir: Change the ReactOS source directory for the current RosBE session"
echo
echo "Syntax: chdefdir <directory>"
return 0
fi
export _ROSBE_ROSSOURCEDIR="$1"
basedir