Fix detection of skeleton directory.
This commit is contained in:
		
							parent
							
								
									5af1a83262
								
							
						
					
					
						commit
						587c5f75ae
					
				| 
						 | 
				
			
			@ -12,7 +12,7 @@
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
# Sanity checks
 | 
			
		||||
if [ $# -ne 5 ]
 | 
			
		||||
if [ $# -ne 4 ]
 | 
			
		||||
then
 | 
			
		||||
    echo "Wrong number of arguments. Expecting:"
 | 
			
		||||
    echo "  ./install.sh <dest_dir> @P@ @PC@ @HEADER_NAME@"
 | 
			
		||||
| 
						 | 
				
			
			@ -24,12 +24,12 @@ then
 | 
			
		|||
fi
 | 
			
		||||
 | 
			
		||||
cd "$(dirname $0)"
 | 
			
		||||
TEMPLATE=$(dirname "$(pwd)")/skel
 | 
			
		||||
TEMPLATE="$(pwd)/skel"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Get arguments, include standard functions
 | 
			
		||||
source scripts/functions.sh || exit 1
 | 
			
		||||
source ${TEMPLATE}/scripts/functions.sh || exit 1
 | 
			
		||||
DEST_DIR="$1"; shift
 | 
			
		||||
P="$1"; shift
 | 
			
		||||
PC="$1"; shift
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue